
#include "iwdg.h"

static struct rcc_lsi_periph iwdg_apb[]=
{
    RCC_CSR_LSION_Pos
};

static struct iwdg_device_data iwdg_data={
    &iwdg_apb[0],
    {
        IWDG_BASE,
        IWDG_PRESCALER_16,
        4095,
    },
};

static struct device iwdg_device={
    "/dev/iwdg",
    "iwdg",
     0,
    NULL,
    (sj_void *)&iwdg_data,
};

static DEVICE_MODULE_INIT(iwdg_device)
